home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-25 | 1.2 KB | 39 lines | [TEXT/GEOL] |
- Item 0312050 24-May-90 15:37PDT
-
- From: D4695 Skywalker Sys, Scott Collins,PRT
-
- To: MADA2 MacApp Dev Assoc, Curtis Faith,IVC
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Dismissers & Freeing Subviews
-
- Curtis,
-
- 1) Dismissers don't 'put away' dialogs. They never have (either modal or
- modeless), any more than choosing the quit item call ExitToShell.
- Instead quit sets a semaphore that says 'all done, you clean up and do whatever
- you have to'.
- PoseModally uses its semaphore (fDismissed) to note that user has finished
- input, it can then do any final validation and finally put the dialog away.
- There are many schools of thought on modeless dialogs, whether they can have
- buttons that make them go away or if only the close box can do that. There is
- no OK button on a MacWrite document.
-
-
- 3) for destroying all subview try this slight modification to what you posted
-
- PROCEDURE RemoveAndFree( aSubView : TView )
- BEGIN
- aSubView.Free;
- END;
-
- ...
- EachSubView( RemoveAndFree );
- ...
-
- See the code in TView.Free for an example and further clarification.
-
- -- Scott Collins
-
-